#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/9/21 17:58
# @Author : 吴敬超
# explain:

from collections import OrderedDict
import json

x = OrderedDict()

x["label"] = "haha"
x["data"] = 234
x["score"] = 0.3



list1 = ['physics', 'chemistry', 1997, 2000]

x["liss"] = list1
#
# json_str = json.dumps(x)
# print json_str
# json_str = json.dumps(video)
# print json_str

# with open('videotest_datan.json', 'w') as json_file:
#     json_file.write(json_str)


with open("videotest_datan.json","w") as f:
    json.dump(x,f)
    # print("加载入文件完成...")